package com.oracle.pojo;

import java.io.Serializable;
import java.util.Date;

public class Logs implements Serializable {
    private Integer id;

    private String executemethod;

    private String admin;

    private Float executetime;

    private String executeargs;

    private String executetype;

    private String executeresult;

    private Date createdate;

    private Date modifydate;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getExecutemethod() {
        return executemethod;
    }

    public void setExecutemethod(String executemethod) {
        this.executemethod = executemethod == null ? null : executemethod.trim();
    }

    public String getAdmin() {
        return admin;
    }

    public void setAdmin(String admin) {
        this.admin = admin == null ? null : admin.trim();
    }

    public Float getExecutetime() {
        return executetime;
    }

    public void setExecutetime(Float executetime) {
        this.executetime = executetime;
    }

    public String getExecuteargs() {
        return executeargs;
    }

    public void setExecuteargs(String executeargs) {
        this.executeargs = executeargs == null ? null : executeargs.trim();
    }

    public String getExecutetype() {
        return executetype;
    }

    public void setExecutetype(String executetype) {
        this.executetype = executetype == null ? null : executetype.trim();
    }

    public String getExecuteresult() {
        return executeresult;
    }

    public void setExecuteresult(String executeresult) {
        this.executeresult = executeresult == null ? null : executeresult.trim();
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Date getModifydate() {
        return modifydate;
    }

    public void setModifydate(Date modifydate) {
        this.modifydate = modifydate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Logs other = (Logs) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getExecutemethod() == null ? other.getExecutemethod() == null : this.getExecutemethod().equals(other.getExecutemethod()))
            && (this.getAdmin() == null ? other.getAdmin() == null : this.getAdmin().equals(other.getAdmin()))
            && (this.getExecutetime() == null ? other.getExecutetime() == null : this.getExecutetime().equals(other.getExecutetime()))
            && (this.getExecuteargs() == null ? other.getExecuteargs() == null : this.getExecuteargs().equals(other.getExecuteargs()))
            && (this.getExecutetype() == null ? other.getExecutetype() == null : this.getExecutetype().equals(other.getExecutetype()))
            && (this.getExecuteresult() == null ? other.getExecuteresult() == null : this.getExecuteresult().equals(other.getExecuteresult()))
            && (this.getCreatedate() == null ? other.getCreatedate() == null : this.getCreatedate().equals(other.getCreatedate()))
            && (this.getModifydate() == null ? other.getModifydate() == null : this.getModifydate().equals(other.getModifydate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getExecutemethod() == null) ? 0 : getExecutemethod().hashCode());
        result = prime * result + ((getAdmin() == null) ? 0 : getAdmin().hashCode());
        result = prime * result + ((getExecutetime() == null) ? 0 : getExecutetime().hashCode());
        result = prime * result + ((getExecuteargs() == null) ? 0 : getExecuteargs().hashCode());
        result = prime * result + ((getExecutetype() == null) ? 0 : getExecutetype().hashCode());
        result = prime * result + ((getExecuteresult() == null) ? 0 : getExecuteresult().hashCode());
        result = prime * result + ((getCreatedate() == null) ? 0 : getCreatedate().hashCode());
        result = prime * result + ((getModifydate() == null) ? 0 : getModifydate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", executemethod=").append(executemethod);
        sb.append(", admin=").append(admin);
        sb.append(", executetime=").append(executetime);
        sb.append(", executeargs=").append(executeargs);
        sb.append(", executetype=").append(executetype);
        sb.append(", executeresult=").append(executeresult);
        sb.append(", createdate=").append(createdate);
        sb.append(", modifydate=").append(modifydate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}